package cn.itcast.tanhua.mytanhuaserver.service;

import cn.itcast.tanhua.vo.PageResult;
import cn.itcast.tanhua.vo.QuanZiVo;
import cn.itcast.tanhua.vo.VisitorsVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author 郭文亮
 * @since 2021/11/28 21:00
 */
public interface QuanziService {
    PageResult queryPublishList(Integer page, Integer pageSize);

    String savePublish(String textContent, String location, String latitude, String longitude, MultipartFile[] multipartFile);

    PageResult queryRecommendPublishList(Integer page, Integer pageSize);

    Long disLikeComment(String publishId);

    Long likeComment(String publishId);

    Long disLoveComment(String publishId);

    Long loveComment(String publishId);

    QuanZiVo queryById(String publishId);

    Boolean saveComments(String publishId, String content);

    PageResult queryCommentList(String publishId, Integer page, Integer pageSize);

    PageResult queryAlbumList(Long userId, Integer page, Integer pageSize);

    List<VisitorsVo> queryVisitorsList();
}
